Skip to content

fix: return 404 for non-existing revisions#6014

Merged
rjsparks merged 5 commits intoietf-tools:mainfrom
maybe-hello-world:fix-5934
Jul 23, 2023
Merged

fix: return 404 for non-existing revisions#6014
rjsparks merged 5 commits intoietf-tools:mainfrom
maybe-hello-world:fix-5934

Conversation

@maybe-hello-world
Copy link
Copy Markdown
Contributor

Links to non-existing revisions to docs should return 404
Closes #5934

@codecov
Copy link
Copy Markdown

codecov Bot commented Jul 22, 2023

Codecov Report

Merging #6014 (17fe4d5) into main (09f3477) will decrease coverage by 0.03%.
The diff coverage is 88.88%.

@@            Coverage Diff             @@
##             main    #6014      +/-   ##
==========================================
- Coverage   88.67%   88.64%   -0.03%     
==========================================
  Files         288      288              
  Lines       40001    40010       +9     
==========================================
- Hits        35471    35467       -4     
- Misses       4530     4543      +13     
Impacted Files Coverage Δ
ietf/doc/views_stats.py 74.80% <ø> (ø)
ietf/ietfauth/widgets.py 84.61% <ø> (ø)
ietf/nomcom/views.py 92.90% <33.33%> (-0.22%) ⬇️
ietf/doc/utils.py 87.15% <100.00%> (+0.01%) ⬆️
ietf/doc/views_doc.py 91.65% <100.00%> (+0.03%) ⬆️
ietf/doc/views_search.py 89.13% <100.00%> (+0.20%) ⬆️
ietf/nomcom/templatetags/nomcom_tags.py 70.83% <100.00%> (+3.64%) ⬆️
ietf/submit/forms.py 79.02% <100.00%> (+0.03%) ⬆️

... and 6 files with indirect coverage changes

Copy link
Copy Markdown
Member

@jennifer-richards jennifer-richards left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but I think one small addition is needed. See inline comment.

Comment thread ietf/doc/views_doc.py Outdated
@maybe-hello-world
Copy link
Copy Markdown
Contributor Author

Feel free to squash before merging to simplify history if needed 😅

@jennifer-richards
Copy link
Copy Markdown
Member

Feel free to squash before merging to simplify history if needed 😅

:-) that's our usual practice, otherwise our history would be more, uh, "interesting."

Copy link
Copy Markdown
Member

@jennifer-richards jennifer-richards left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Your last change, I think, restores the behavior of returning the current bibtex for a request for a (non RFC) draft with a nonexistent revision. That seems fine to me.

@rjsparks rjsparks merged commit 4d61170 into ietf-tools:main Jul 23, 2023
@maybe-hello-world maybe-hello-world deleted the fix-5934 branch July 23, 2023 17:45
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

doc url parser accepts revision for rfcs

3 participants